package com.auto.sohu.mapreduce;

import java.net.URLDecoder;
import java.net.URLEncoder;

import junit.framework.TestCase;

public class Test  extends TestCase{

	public static void main(String[] args) throws Exception {
		String str = "deviceId&date-yyyyMMdd";
		String encodeStr = URLEncoder.encode(str, "UTF-8");
		System.out.println(encodeStr);
		System.out.println(URLDecoder.decode(encodeStr, "UTF-8"));
	}

}
